
# module "stg-ops-salt" {
#   source = "../../modules/hybrid/dns/deeproute.cn"

#   remark = "基础设施管理（车端系统）域名dev环境"
#   rr    = "stg-ops-salt"
#   type  = "A"
#   value = "10.3.8.56"
# }

module "stg-ack-traefik" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-ack-traefik"
  type  = "A"
  ttl   = 3600
  value = "10.246.2.153"
}

module "stg-traefik-lb" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-traefik-lb"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.24"
}

module "stg-traefik" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-traefik"
  type  = "A"
  value = "10.3.8.100"
}

module "stg-traefik-harbor" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-traefik-harbor"
  type  = "A"
  value = "10.3.8.52"
}

module "stg-traefik-large-lb" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-traefik-large-lb"
  type  = "A"
  value = "10.3.8.101"
}

module "stg-traefik-ingress-large-lb" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-traefik-ingress-large-lb"
  type  = "A"
  ttl   = 3600
  value = "10.3.8.101"
}

module "stg-traefik-ingress-lb" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-traefik-ingress-lb"
  type  = "A"
  ttl   = 3600
  value = "10.3.8.100"
}

module "stg-kafka" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-kafka"
  type  = "A"
  value = "10.3.8.123"
}

module "cnames-to-stg-ack-traefik" {
  source = "../../modules/hybrid/dns_multi/deeproute.cn"

  type  = "CNAME"
  value = "stg-ack-traefik.deeproute.cn"

  rrs = [
    "stg-apk-download",
    "cicd-victoria-metrics",
    "stg-grafana",
  ]
}

module "cnames-to-stg-traefik-ingress-lb" {
  source = "../../modules/hybrid/dns_multi/deeproute.cn"

  type  = "CNAME"
  value = "stg-traefik-ingress-lb.deeproute.cn"
  ttl   = 3600

  rrs = [
    "stg-alarm-system",
    "stg-alarm-system-manager",
    "stg-alarm-system-monitor",
    "stg-alertmanager",
    "stg-annotation-platform-frontend",
    "stg-apm-server",
    "stg-benchmark-server",
    "stg-car-monitoring-platform-frontend",
    "stg-clookup",
    "stg-dataset-server",
    "stg-elasticsearch",
    "stg-helm-chartmuseum",
    "stg-jaeger",
    "stg-kafka-ui",
    "stg-keelsh",
    "stg-kiali",
    "stg-kibana",
    "stg-kube-auth-manager",
    "stg-kube-dashboard",
    "stg-map-label-server",
    "stg-mapping-pipeline-server",
    "stg-mapping-task-server",
    "stg-mlp-api-etl",
    "stg-mlp-api-gateway",
    "stg-mlp-api-mlpfields",
    "stg-mlp-northstar",
    "stg-mlp-northstar-backend",
    "stg-mlp-northstar-jupyter",
    "stg-mlp-northstar-proxy",
    "stg-myadmin",
    "stg-nacos",
    "stg-ndt-storage-server",
    "stg-operation-admin",
    "stg-ops-nacos",
    "stg-pgadmin",
    "stg-posing-pipeline-server",
    "stg-prometheus",
    "stg-prometheusalert",
    "stg-region-server",
    "stg-semantic-map-reader-server",
    "stg-semantic-map-storage-server",
    "stg-sentry-tools-service",
    "stg-simulation-admin",
    "stg-skywalking",
    "stg-skywalking-oap",
    "stg-sonarqube",
    "stg-trajectory-visualization-server",
    "test-prometheus",
    "tmp-stg-keelsh",
    "uat-dataocean-api-gateway",
  ]
}

module "stg-victoria-metrics" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  type  = "CNAME"
  value = "stg-traefik-ingress-lb.deeproute.cn"
  rr    = "stg-victoria-metrics"
  remark = "回传监控"
}

module "stg-webvis" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  type  = "CNAME"
  value = "stg-traefik-ingress-lb.deeproute.cn"
  rr = "stg-webvis"
  remark = "QA测试环境"
}

module "stg-dr-safe-app" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  type  = "CNAME"
  value = "stg-traefik-ingress-lb.deeproute.cn"
  rr = "stg-dr-safe-app"
  remark = "QA测试环境"
}

module "cnames-to-stg-traefik-lb" {
  source = "../../modules/hybrid/dns_multi/deeproute.cn"

  type  = "CNAME"
  value = "stg-traefik-lb.deeproute.cn"
  ttl   = 3600

  rrs = [
    "dev-dataocean-onboard-task-management-service",
    "old-stg-alertmanager",
    "old-stg-prometheus",
    "old-stg-victoria-metrics",
    "stg-car-grafana",
    "stg-dataocean-account-management-service",
    "stg-dataocean-authentication-service",
    "stg-dataocean-data-provider-service",
    "stg-dataocean-vehicle-data-service",
    "stg-grafana-reporter",
    "stg-kafka-manager",
    "stg-minio",
    "stg-minio-cs",
    "stg-ml-platform-annotation",
    "stg-ml-platform-explorer",
    "stg-monitor-backend",
    "stg-rocketmq-web",
    "stg-zipkin",
  ]
}

module "cnames-to-stg-traefik-ingress-large-lb" {
  source = "../../modules/hybrid/dns_multi/deeproute.cn"

  type  = "CNAME"
  value = "stg-traefik-ingress-large-lb.deeproute.cn"

  rrs = [
    "data.internal-uat",
    "qa-dr-diagnostic-tool",
    "stg-dataocean-api-gateway",
    "stg-simulation",
    "uat-dataocean",
    "uat-drplatform",
    "uat-external-dataocean-data-provider-service",
    "uat-external-grpc-dataocean-data-provider-service",
  ]
}

module "cnames-to-stg-traefik-large-lb" {
  source = "../../modules/hybrid/dns_multi/deeproute.cn"

  type  = "CNAME"
  value = "stg-traefik-large-lb.deeproute.cn"
  ttl   = 3600

  rrs = [
    "stg-dataocean",
    "stg-external-dataocean-data-provider-service",
  ]
}

module "stg-elasticsearch-transport" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-elasticsearch-transport"
  type  = "A"
  ttl   = 3600
  value = "10.3.8.127"
}

module "stg-fsrelay" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-fsrelay"
  type  = "A"
  ttl   = 3600
  value = "10.3.2.31"
}

module "stg-kafka-log" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-kafka-log"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.122"
}

module "stg-map-platform" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-map-platform"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.127"
}

module "stg-ml-platform-annotation-db" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-ml-platform-annotation-db"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.206"
}

module "stg-mlp-data-warehouse-mongodb" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-mlp-data-warehouse-mongodb"
  type  = "A"
  ttl   = 3600
  value = "10.3.8.129"
}

module "stg-mlp-postgresql" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-mlp-postgresql"
  type  = "A"
  ttl   = 3600
  value = "10.3.8.43"
}

module "stg-ndt-reader-server" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-ndt-reader-server"
  type  = "A"
  ttl   = 3600
  value = "10.3.8.125"
}

module "stg-ops-bitwarden" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-ops-bitwarden"
  type  = "A"
  ttl   = 3600
  value = "10.10.10.15"
}

module "stg-planing-mongo" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-planing-mongo"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.120"
}

module "stg-rabbitmq" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-rabbitmq"
  type  = "A"
  ttl   = 3600
  value = "10.3.8.114"
}

module "stg-rancher" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-rancher"
  type  = "A"
  ttl   = 3600
  value = "10.10.10.15"
}

module "stg-receiver-internal-mesh" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-receiver-internal.mesh"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.126"
}

module "stg-rocketmq" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-rocketmq"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.127"
}

module "stg-simulation-platform" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-simulation-platform"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.123"
}

module "stg-traefik-lb-tcp" {
  source = "../../modules/hybrid/dns/deeproute.cn"

  rr    = "stg-traefik-lb-tcp"
  type  = "A"
  ttl   = 3600
  value = "10.9.9.59"
}


module "cnames-to-stg-traefik" {
  source = "../../modules/hybrid/dns_multi/deeproute.cn"

  type  = "CNAME"
  value = "stg-traefik.deeproute.cn"

  rrs = [
    "dev-office-system-api",
  ]
}
